﻿//==============================================================================  
//Copyright (C) 2012-2015 9UN.ORG. All rights reserved. 
//GUID：e010d0dd-b8c2-4cf3-9a87-fcd09b1a3b89
//CLR Version: 4.0.30319.18033
//Code Author：Kevin Wang
//Contact：Email(Admin@9un.org),QQ(265382 or 74344)
//Filename：BaseInterop
//Namespace：RuanRang.Media.Core.Internal.Interop
//Functions：BaseInterop  
//Created by Kevin Wang at 2013/3/3 15:59:51 http://blog.9un.org
//============================================================================== 
using log4net;

namespace RuanRang.Media.Core.Internal.Interop
{
    public abstract class BaseInterop
    {
        #region Diagnostics

        /// <summary>
        /// Set true to cause a trace message to be generated for each libVLC call
        /// </summary>
        internal static bool CallTraceEnabled = true;

        /// <summary>
        /// The logger
        /// </summary>
        protected static ILog Logger;

        /// <summary>
        /// TRACEs the call.
        /// </summary>
        /// <param name="msg">The MSG.</param>
        protected static void TraceCall(string msg)
        {
            if (Logger.IsDebugEnabled)
            {
                Logger.Debug("native call: " + msg);
            }
        }

        #endregion
    }
}
